@import 'variables.scss';

@function parseInt($n) {
    @return $n / ($n * 0 + 1);
}

@function pxToRem($values, $double:true){

    $list:();
    $root: $font-size-root-num;

    @if $double {
         $root:$font-size-root-num * 2;
    }

    @each $value in $values {

        $px  : parseInt($value);

        $list: append($list, ($px / $root) + rem);
    }

    @return $list;

}
